// pages/editName/editName.js
Page({

  data: {
    username:""
  },
  onLoad:function(){
    let userInfo = typeof wx.getStorageSync('userInfo')==='string'? JSON.parse(wx.getStorageSync('userInfo')):wx.getStorageSync('userInfo');
    let username=userInfo.nickName;
    this.setData({
      username
    })
  },
  finish(){
    wx.navigateBack({
      delta: 1,
    })

  }
})